package com.company.biz.product.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import com.company.product.entity.SupplierEntity;
import com.company.product.req.SupplierInfoReq;
import com.company.product.req.SupplierListPageReq;
import com.company.product.resp.SupplierInfoResp;
import com.company.user.entity.UserEntity;

import java.util.List;

public interface SupplierService extends IService<SupplierEntity> {

   Page<SupplierInfoResp> getSupplierListPage(SupplierListPageReq req);

    boolean addSupplier(SupplierInfoReq req, UserEntity userEntity);

    SupplierInfoResp getSupplierBySupplierId(String supplierId);

    boolean updateSupplierBySupplierId(SupplierInfoReq req,UserEntity userEntity);

    boolean deleteSupplierBySupplierIds(List<String> supplierIds,UserEntity userEntity);


}
